-- GENERATED SPELL FOR [Rampaging Earth Elemental] --


function spell0_24340(pUnit, Event) --@Call Boulder,n/a--
pUnit:FullCastSpellOnTarget(49742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24340', 555, 1)
end

function Sorts_24340(pUnit, Event)
local choix_sorts_24340 = math.random(0, 0)
if choix_sorts_24340 == 0 then
pUnit:RegisterEvent('spell0_24340', 1, 1)
end
end

function mob24340_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24340', math.random(1500, 3000), 1)
end

function mob24340_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24340_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24340_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24340, 1, 'mob24340_Action')
RegisterUnitEvent(24340, 2, 'mob24340_Leave')
RegisterUnitEvent(24340, 3, 'mob24340_Kill')
RegisterUnitEvent(24340, 4, 'mob24340_Die')
